package io.jee.medusa.orm.pager.support;

import java.util.Map;

import io.jee.medusa.orm.pager.InputPager;
import io.jee.medusa.orm.pager.OrderByBuilder;

public abstract class ConditionSupport {
	
	public final static String TYPE_DESC = "DESC";
	public final static String TYPE_ASC = "ASC";

	private InputPager pager = new InputPager();
	
	public abstract void orderBy(OrderByBuilder builder);

	public InputPager getPager() {
		return pager;
	}

	public void setPager(InputPager pager) {
		this.pager = pager;
	}

	public final Map<String, String> getOrderBy() {
		OrderByBuilder builder = new OrderByBuilder();
		orderBy(builder);
		return builder.getOrderBy();
	}

}
